home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fatted Calf
/
The Fatted Calf.iso
/
Applications
/
Graphics
/
GraphicsWrap
/
Source
/
CmdFgcolor.m
< prev
next >
Wrap
Text File
|
1991-09-16
|
629b
|
38 lines
/* Generated by Interface Builder */
#import "CmdFgcolor.h"
#import "miscutil.h"
@implementation CmdFgcolor
- initCmd:(int)r :(int)g :(int)b
{
[super init];
color=NXConvertRGBToColor(bytetofloat(r), bytetofloat(g), bytetofloat(b));
number1=r;
number2=g;
number3=b;
command="fgcolor";
return self;
}
- initCmdColor:(NXColor)aColor
{
[super init];
color=aColor;
number1=floattobyte(NXRedComponent(aColor));
number2=floattobyte(NXGreenComponent(aColor));
number3=floattobyte(NXBlueComponent(aColor));
command="fgcolor";
return self;
}
- doCmd
{
[theBitmap setColor:color];
return self;
}
@end